From: Nick Roberts Date: Wed, 30 May 2007 05:24:18 +0000 (+0000) Subject: (init_sys_modes): Add rather than replace with X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~421^2~18689 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=1c1a681349027b59adcca7ea149fbd0a0b4a6c56;p=emacs.git (init_sys_modes): Add rather than replace with O_NONBLOCK. --- diff --git a/src/sysdep.c b/src/sysdep.c index 202cab4abd2..95ad90c2a1b 100644 --- a/src/sysdep.c +++ b/src/sysdep.c @@ -1679,7 +1679,7 @@ init_sys_modes () if (term_gpm) { fcntl (gpm_fd, F_SETOWN, getpid ()); - fcntl (gpm_fd, F_SETFL, O_NONBLOCK); + fcntl (gpm_fd, F_SETFL, fcntl (gpm_fd, F_GETFL, 0) | O_NONBLOCK); init_sigio (gpm_fd); } #endif /* HAVE_GPM */